import { SHOWLIST } from '_redux/actions/weather'

const weatherState = {
  lists: [],
  show: false,
  update: false,
  name: 'weather'
}

function weatherReducer(state = weatherState, action) {
  switch (action.type) {
  case SHOWLIST:
    return {
      ...state,
      show: action.show
    }
    break
  default:
    return state
  }
}

export default weatherReducer

